package com.outsider.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.outsider.service.StaffService;

@Controller
@RequestMapping("/staff")
public class StaffAction {
	@Autowired
    private StaffService staffService;

	
	
	@ResponseBody
	@RequestMapping("/getStaffName")
	public String getStaffName(int staffID){
		System.out.println(staffID);
		return staffService.getStaffName(1);
	}


}
